Integrand size = 21, antiderivative size = 127 \[ \int \frac {a+a \cos (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\frac {6 a \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 a \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 127, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3317, 3872, 3854, 3856, 2719, 2720} \[ \int \frac {a+a \cos (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\frac {2 a \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {2 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{3 d}+\frac {6 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right )}{5 d} \]
[In]
[Out]
Rule 2719
Rule 2720
Rule 3317
Rule 3854
Rule 3856
Rule 3872
Rubi steps \begin{align*} \text {integral}& = \int \frac {a+a \sec (c+d x)}{\sec ^{\frac {5}{2}}(c+d x)} \, dx \\ & = a \int \frac {1}{\sec ^{\frac {5}{2}}(c+d x)} \, dx+a \int \frac {1}{\sec ^{\frac {3}{2}}(c+d x)} \, dx \\ & = \frac {2 a \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {1}{3} a \int \sqrt {\sec (c+d x)} \, dx+\frac {1}{5} (3 a) \int \frac {1}{\sqrt {\sec (c+d x)}} \, dx \\ & = \frac {2 a \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}}+\frac {1}{3} \left (a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx+\frac {1}{5} \left (3 a \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\cos (c+d x)} \, dx \\ & = \frac {6 a \sqrt {\cos (c+d x)} E\left (\left .\frac {1}{2} (c+d x)\right |2\right ) \sqrt {\sec (c+d x)}}{5 d}+\frac {2 a \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right ) \sqrt {\sec (c+d x)}}{3 d}+\frac {2 a \sin (c+d x)}{5 d \sec ^{\frac {3}{2}}(c+d x)}+\frac {2 a \sin (c+d x)}{3 d \sqrt {\sec (c+d x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 0.74 (sec) , antiderivative size = 224, normalized size of antiderivative = 1.76 \[ \int \frac {a+a \cos (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=-\frac {i a e^{-3 i (c+d x)} (1+\cos (c+d x)) \left (-3-10 e^{i (c+d x)}+33 e^{2 i (c+d x)}+39 e^{4 i (c+d x)}+10 e^{5 i (c+d x)}+3 e^{6 i (c+d x)}-72 e^{2 i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \operatorname {Hypergeometric2F1}\left (-\frac {1}{4},\frac {1}{2},\frac {3}{4},-e^{2 i (c+d x)}\right )+40 e^{3 i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \operatorname {Hypergeometric2F1}\left (\frac {1}{4},\frac {1}{2},\frac {5}{4},-e^{2 i (c+d x)}\right )\right ) \sec ^2\left (\frac {1}{2} (c+d x)\right ) \sqrt {\sec (c+d x)}}{120 d} \]
[In]
[Out]
Time = 6.65 (sec) , antiderivative size = 219, normalized size of antiderivative = 1.72
method | result | size |
default | \(-\frac {2 \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, a \left (24 \left (\cos ^{7}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-28 \left (\cos ^{5}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+5 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-9 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {-2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )+4 \cos \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{15 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}\) | \(219\) |
parts | \(-\frac {2 a \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (4 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )+\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{3 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}-\frac {2 a \sqrt {\left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, \left (-8 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (\sin ^{6}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+8 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) \cos \left (\frac {d x}{2}+\frac {c}{2}\right )-3 \sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, E\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )\right )}{5 \sqrt {-2 \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )}\, \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, d}\) | \(383\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.09 (sec) , antiderivative size = 145, normalized size of antiderivative = 1.14 \[ \int \frac {a+a \cos (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\frac {-5 i \, \sqrt {2} a {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + 5 i \, \sqrt {2} a {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) + 9 i \, \sqrt {2} a {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right )\right ) - 9 i \, \sqrt {2} a {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right )\right ) + \frac {2 \, {\left (3 \, a \cos \left (d x + c\right )^{2} + 5 \, a \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )}{\sqrt {\cos \left (d x + c\right )}}}{15 \, d} \]
[In]
[Out]
\[ \int \frac {a+a \cos (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=a \left (\int \frac {\cos {\left (c + d x \right )}}{\sec ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx + \int \frac {1}{\sec ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx\right ) \]
[In]
[Out]
\[ \int \frac {a+a \cos (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {a \cos \left (d x + c\right ) + a}{\sec \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
\[ \int \frac {a+a \cos (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\int { \frac {a \cos \left (d x + c\right ) + a}{\sec \left (d x + c\right )^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+a \cos (c+d x)}{\sec ^{\frac {3}{2}}(c+d x)} \, dx=\int \frac {a+a\,\cos \left (c+d\,x\right )}{{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}} \,d x \]
[In]
[Out]